//-----------------------------------------------------------------------
// <copyright file="TwitterContextTests.cs" company="Rhys Parry">
//    Copyright Rhys Parry 2009
//    This file is released under the Apache 2.0 License
// </copyright>
//-----------------------------------------------------------------------
namespace Smarts.Internal.Test.Services.Twitter
{
    using System.Linq;
    using Moq;
    using NUnit.Framework;
    using Smarts.Core.Interfaces;
    using Smarts.Services.Twitter;

    [TestFixture]
    public class TwitterContextTests
    {
        [Test]
        [Ignore]
        public void CanAccessPublicTimeline()
        {
            var web = new Mock<IWebAccessor>();
            var twitter = new TwitterContext(web.Object);
            twitter.PublicTimeline.ToList();

            web.Verify(w => w.Get("/statuses/public_timeline.xml"), Times.AtLeast(1));
        }

        [Test]
        [Ignore]
        public void CanAccessFriendsTimeline()
        {
            var web = new Mock<IWebAccessor>();
            var twitter = new TwitterContext(web.Object);
            twitter.FriendsTimeline.Take(20).ToList();
        }
    }
}